package com.ycsyxt.service.impl;

import java.util.List;

import com.ycsyxt.annotation.DataSource;
import com.ycsyxt.datasource.DataSourceType;
import com.ycsyxt.entity.SysTest;
import com.ycsyxt.mapper.TestMapper;
import com.ycsyxt.service.TestService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ycs(15241496739 @ 163.com)
 * @date 2021/12/25
 **/
@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;

    @Override
    @DataSource(DataSourceType.SLAVE)
    public List<SysTest> selectTest(SysTest sysTest) {
        return testMapper.selectTest(sysTest);
    }
}
